import React, { Component, Fragment } from "react";
import { getRouterTemplate, getRouterMenu } from "../router/router";
import { Switch } from "antd";
import { Gateway } from "./InterfaceStyle/Gateway";
import { Admin } from "./InterfaceStyle/Admin";
import { VERIFYTOKEN } from "../service/api/AdminApi";
import { message } from "antd";
import { inject, observer } from "mobx-react";
import { withRouter } from "react-router";
import RentiGateway from "./InterfaceStyle/RentiGateway.js";
import { Face_gateway } from './InterfaceStyle/face_gateway'
import Yun_ying_gateway from './InterfaceStyle/yun_ying_gateway'
@withRouter
@inject("AdminStore")
@observer
export default class A extends React.Component {
  state = { version: 0, can_render: false };
  render() {
    const routers = getRouterTemplate();
    const menuList = getRouterMenu();
    //进入项目的前提
    return (<Yun_ying_gateway routers={routers} />)
  }
  componentDidMount = async () => {

    this.props.history.push('/yun_ying')
  };
}
